﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="TermList.ascx.cs" Inherits="FisheryPlatform.Web.Admin.Modules.Post.TermList" %>
<%@ Register TagName="PageBar" TagPrefix="ucPB" Src="~/Modules/PageBar.ascx" %>
<table class="list" cellspacing="0" cellpadding="0">
    <tr>
        <td style="width: 150px; text-align: center;">
            名称
        </td>
        <td style="width: 100px; text-align: center;">
            别名
        </td>
        <td style="width: 150px; text-align: center;">
            描述
        </td>
        <td style="width: 50px; text-align: center;">
            文章
        </td>
        <td style="width: 50px; text-align: center;">
            操作
        </td>
    </tr>
    <% foreach (var term in PostTermList)
       {%>
    <tr>
        <td>
            <a href="javascript:void(0);" title="点击修改" onclick="modifyTerm(<%=term.TermId %>,<%=term.ParentId %>,this)">
                <%= HttpUtility.HtmlEncode(term.Name) %></a>
        </td>
        <td>
            <%= HttpUtility.HtmlEncode(term.Slug) %>
        </td>
        <td>
            <%= HttpUtility.HtmlEncode(term.Description) %>
        </td>
        <td>
            <%= term.Count %>
        </td>
        <td>
            <a href="javascript:;" onclick="termManager.remove(<%=term.TermId %>)">删除</a>
        </td>
    </tr>
    <%} %>
</table>
<div>
    <ucPB:PageBar runat="server" ID="pb_PageBar" />
</div>
